import { requestInstanceOne } from '@/service/request/index'
import { IApiRes } from '@/service/types'
export interface IUserLoginApiRes {
  AvatarUrl: string
  Birthday: string
  CityCode: string
  Code: string
  CountyCode: string
  CreateTime: string
  Creator: string
  Email: string
  Gender: string
  ID: string
  IsDel: string
  LastModifier: string
  LastModifyTime: string
  Name: string
  Note: string
  Password: string
  Phone: string
  ProvienceCode: string
  token: string
  [property: string]: any
}
export const userLoginApi = (userInfo: any) => {
  return requestInstanceOne.request<IApiRes<IUserLoginApiRes>>({
    method: 'post',
    url: '/user/login',
    data: userInfo
  })
}
